/**
 * Created with WebStorm.
 * @Author: panda
 * @Date: 2022-05-18 09:19
 * @Description: 文章相关类型定义
 */
export interface ArticleList {
  id: number,
  title: string,
  content: string,
  thumbnail: string,
  views: number,
  categoryId: string,
  categoryName: string,
  createTime: string,
  likes: number,
}


interface ArticleModel {
  categoryId: string,
  categoryName: string,
  createTime: string,
  id: string,
  content: string,
  likes: number,
  summary: string,
  thumbnail: string,
  title: string,
  views: string
}

export class Article {
  article: ArticleModel = {
    categoryId: '',
    categoryName: '',
    createTime: '',
    id: '',
    content: '',
    likes: 0,
    summary: '',
    thumbnail: '',
    title: '',
    views: ''
  };
}

/* interface SearchArticleModel {
  id: string,
  title: string,
  thumbnail: string,
  views: number,
  likes: number,
}

export class SearchArticle {
  article: SearchArticleModel = {
    id: '',
    title: '',
    thumbnail: '',
    views: 0,
    likes: 0
  }
} */

// interface QueryParams {
//     pageNum: number,
//     pageSize: number,
//     categoryId: number
//     hasMore: boolean
// }

// interface ArticleCategory {
//     id: number,
//     categoryName: string
// }

export class InitArticleList {
  articles: Array<ArticleList> = [];
}

// export class InitArticleCategory {
//     categories: Array<ArticleCategory> = []
// }




